package com.dullfox.sbm.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.dullfox.sbm.common.auth.AuthIgnore;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/config")
public class TestController {

    @NacosValue(value = "${zdy}", autoRefreshed = true)
    private String test;

    @RequestMapping("/get")
    @AuthIgnore
    public boolean get() {
        System.out.println(test);
        return false;
    }
}
